﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Media;

namespace ShellAnywhere.ViewModel
{
	public class OutputViewModel : DependencyObject
	{
		#region ctors
		public OutputViewModel(Brush color, string entry) { Color = color; Entry = entry; Time = DateTime.Now; }
		public OutputViewModel(Brush color, string entry, DateTime time) : this(color, entry) { Time = time; }
		#endregion ctors

		#region props
		public Brush Color { get; set; }
		public string Entry
		{
			get { return (string)GetValue(EntryProperty); }
			set { SetValue(EntryProperty, value); }
		}
		public DateTime Time
		{
			get { return (DateTime)GetValue(TimeProperty); }
			set { SetValue(TimeProperty, value); }
		}
		#endregion props

		#region methods
		#endregion methods

		#region events
		#endregion events

		#region fields
		public static readonly DependencyProperty EntryProperty = DependencyProperty.Register("Entry", typeof(string), typeof(OutputViewModel), new UIPropertyMetadata(""));
		public static readonly DependencyProperty TimeProperty = DependencyProperty.Register("Time", typeof(DateTime), typeof(OutputViewModel), new UIPropertyMetadata(DateTime.Now));
		#endregion fields
	}
}
